#-*- codeing = utf-8 -*-
#@Time : 2020/8/2 15:38
#@Author : 阳某
#@File : ziptest.py
#@Software : PyCharm

l1 = [1,2,3]
l2 = ['a','b','c']
print(zip(l1,l2))
print(list(zip(l1,l2)))
print(set(zip(l1,l2)))
print(dict(zip(l1,l2)))
for k,v in zip(l1,l2):
    print(k,v)
d = {}
l3 = {4:'d'}
print('*'*10)
for k,v in l3.items():
    print(k,v)
d.update(zip(l1,l2))
print(d)
l3.update(zip(l1,l2))
print(l3)

l4 = {'e':5}
for k,v in l4.items():
    print(k,v)
for k,v in zip(l2,l1):
    print(k,v)

l4.update(zip(l2,l1))
print(l4)